<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>设置目标请求引擎</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="oauth.setnonce.html">OAuth::setNonce</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oauth.setrsacertificate.html">OAuth::setRSACertificate</a></div>
 <div class="up"><a href="class.oauth.html">OAuth</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="oauth.setrequestengine" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">OAuth::setRequestEngine</h1>
  <p class="verinfo">(PECL OAuth &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">OAuth::setRequestEngine</span> &mdash; <span class="dc-title">设置目标请求引擎</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-oauth.setrequestengine-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>OAuth::setRequestEngine</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$reqengine</code></span>
   )</div>

  <p class="para rdfs-comment">
   设置请求引擎，用于发送 HTTP 请求。
  </p>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-oauth.setrequestengine-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">reqengine</code></em></dt>

    <dd>

     <p class="para">
      想要的请求引擎。 设为 <strong><code>OAUTH_REQENGINE_STREAMS</code></strong> 则使用 PHP 流，设为 <strong><code>OAUTH_REQENGINE_CURL</code></strong> 则使用 <a href="book.curl.html" class="link">Curl</a>。
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-oauth.setrequestengine-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-oauth.setrequestengine-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
  如果选择了一个无效的请求引擎，则发出一个 <a href="class.oauthexception.html" class="classname">OAuthException</a> 异常。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-oauth.setrequestengine-examples">
  <h3 class="title">范例</h3>
  <div class="example" id="example-5169">
   <p><strong>Example #1 <span class="function"><strong>OAuth::setRequestEngine()</strong></span> 例子</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$consumer&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">OAuth</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">$consumer</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setRequestEngine</span><span style="color: #007700">(</span><span style="color: #0000BB">OAUTH_REQENGINE_STREAMS</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-oauth.setrequestengine-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member"><a href="book.curl.html" class="link">Curl</a></li>
   <li class="member"><a href="book.stream.html" class="link">PHP 流</a></li>
   <li class="member"><a href="class.oauthexception.html" class="classname">OAuthException</a></li>
  </ul>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="oauth.setnonce.html">OAuth::setNonce</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oauth.setrsacertificate.html">OAuth::setRSACertificate</a></div>
 <div class="up"><a href="class.oauth.html">OAuth</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
